package com.qingyun.edusysteam.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qingyun.edusysteam.dto.MaterialDTO;
import com.qingyun.edusysteam.dto.Result;
import com.qingyun.edusysteam.entity.Material;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 资料中心 服务类
 * </p>
 *
 * @author your_name
 * @since 2025-08-23
 */
public interface IMaterialService extends IService<Material> {

    Result uploadMaterial(MaterialDTO materialDTO, String token);

    Result downloadMaterial(Long id, String token, HttpServletResponse response);

    Result getMaterialList(String category, String grade, String keyword, String token, String subject);

    Result getDownloadableMaterials(String category, String grade, String keyword, String token, String subject);

    Result deleteMaterial(Long id, String token);
}
